package com.example.enterprisemanager.mvvm.adapter;

import com.example.enterprisemanager.R;
import com.example.enterprisemanager.base.BaseBindingAdapter;
import com.example.enterprisemanager.base.BaseBindingViewHolder;
import com.example.enterprisemanager.databinding.ItemAllocateBinding;
import com.example.enterprisemanager.mvvm.fragment.manager.ben.EnrollGoods;


public class AllocateAdapter extends BaseBindingAdapter<EnrollGoods, BaseBindingViewHolder> {

    public AllocateAdapter() {
        super(R.layout.item_allocate);
    }

    @Override
    protected void convert(BaseBindingViewHolder helper, EnrollGoods item) {
        helper.addOnClickListener(R.id.btn_allocate_item);
        ItemAllocateBinding bind = helper.getBinding();
        bind.setGoods(item);
    }
}
